var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    productId: mongoose.Schema.ObjectId,
    productname: String,
    selling: Number,
    num: Number,
    sales: Number,
    company: String,
    count: Number,
    price: Number,
    deliverytime: Date,
    deliveryaddress: String
});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('Order', schema); // Model.paginate()